package Levels 
{
	import flash.display.MovieClip;
	import Objetos.Heroi;
	import Objetos.Plataforma;
	/**
	 * ...
	 * @author Rodrigo Forti
	 */
	public class Level1 extends Level
	{
		
		public function Level1() 
		{
		
		}
		
		public function desenharTela():void
		{
			gameConstructor = new Fase1();
			gameConstructor.x = 0;
			gameConstructor.y = 0;
			Main.getInstance().MC_tela.addChild(gameConstructor);
			
			MC_heroi = new Heroi(1)
			MC_heroi.x = 100;
			MC_heroi.y = 100;
			Main.getInstance().MC_tela.addChild(MC_heroi);
			AR_herois.push(MC_heroi);
			
			MC_heroi = new Heroi(2);
			MC_heroi.x = 350;
			MC_heroi.y = 150;
			Main.getInstance().MC_tela.addChild(MC_heroi);
			AR_herois.push(MC_heroi);
			
			MC_upgrade = new Upgrade();
			MC_upgrade.x = 300;
			MC_upgrade.y = 200;
			Main.getInstance().MC_tela.addChild(MC_upgrade);
		}
		
		public function desenharArray():void
		{
			for (var m:int = 0; m < gameConstructor.numChildren; m++)
			{
				var mc:Object = gameConstructor.getChildAt(m);
				
				if (mc is Plataforma)
				{
					AR_plataformas.push(mc);
				}
			}
			
			trace (AR_plataformas.length);
		}
		
		override public function update():void
		{
			super.update();
			// adicionar conteudo
		}
		
	}

}